package com.aiju.cash.util;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;

import com.aiju.app.DataProviderManager;
import com.aiju.utils.T;

/**
 * @author: 佐为
 * @date: 2017-04-28 11:12
 * @version: V1.0
 * @Description:电话相关
 */
public class PhoneUtil {

    /**
     * 联系客服
     */
    public static void contactUs(Activity activity) {
        if (DataProviderManager.getDataProvider().getModel().equals("V1")) {
            T.ToastShort("联系电话：0571-89935939");
            return;
        }
        Intent intent = new Intent(Intent.ACTION_DIAL);
        Uri data = Uri.parse("tel:" + "0571-89935939");
        intent.setData(data);
        activity.startActivity(intent);
    }
}
